package com.example.strategy.service.impl;

import com.example.strategy.dto.PayEnum;
import com.example.strategy.service.PayStrategy;
import org.springframework.stereotype.Component;

/**
 * @author xwj
 * @date 2021/4/28 17:26
 * description:
 */
@Component("unionPayStrategyImpl")
public class UnionPayStrategyImpl implements PayStrategy {
    @Override
    public String pay(String channel, String amount) throws Exception {
        return String.format(MSG, PayEnum.WECHAT_PAY.getDescription(),amount);
    }
}
